package io.renren.modules.api.dao;

import io.renren.modules.api.entity.PsOrderRouteSectionEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单路线路段(区间)表
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2018-04-21 10:26:24
 */
@Mapper
public interface PsOrderRouteSectionDao extends BaseDao<PsOrderRouteSectionEntity> {
    List<Map<String,Object>> queryDestinationsByOrderNum(String ordernum);
    PsOrderRouteSectionEntity queryDesByOrderNumAndSortNum(@Param("ordernum")String ordernum, @Param("arriveDesNum")Integer arriveDesNum);
    int queryMaxSortNum(String ordernum);
    List<PsOrderRouteSectionEntity> queryListByOrderNum(String ordernum);

}
